package io.renren.modules.demo.dao;

import io.renren.common.dao.BaseDao;
import io.renren.modules.demo.dto.ChildSixData;
import io.renren.modules.demo.entity.DhOutdorsportInfoEntity;
import io.renren.modules.demo.entity.DhSportapplyInfoEntity;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2023-03-25
 */
@Mapper
public interface DhOutdorsportInfoDao extends BaseDao<DhOutdorsportInfoEntity> {

    /**
     * 根据sport_id搜索dh_sportapply_info表中的信息
     *
     * @param sportId
     * @return
     */
    List<DhSportapplyInfoEntity> getInfoBySportId(Integer sportId);

    /**
     * 获取不同活动报名人数
     *
     * @return
     */
    List<ChildSixData> getChildSixData();
}